package org.tuoren.official.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.tuoren.common.excel.annotation.ExcelDictFormat;
import org.tuoren.common.excel.convert.ExcelDictConvert;
import org.tuoren.official.domain.TBusinessSupport;

import java.io.Serial;
import java.io.Serializable;



/**
 * 商务配套设施视图对象 t_business_support
 *
 * @author Lion Li
 * @since 2024-11-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TBusinessSupport.class)
public class TBusinessSupportVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 类型（1:服务设施  2:业务联系方式）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1= 服务设施,2= 业务联系方式")
    private String type;

    /**
     * 设施名称
     */
    @ExcelProperty(value = "设施名称")
    private String name;

    /**
     * 简述
     */
    @ExcelProperty(value = "简述")
    private String businessDesc;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 联系方式
     */
    @ExcelProperty(value = "联系方式")
    private String phone;

    /**
     * 地址
     */
    @ExcelProperty(value = "宣传图")
    private String photoUrl;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;
}
